package com.coffee.wx.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.coffee.wx.entity.business.WxFollowInfo;

import java.util.List;
import java.util.Map;

public interface IWxFollowInfoService extends IService<WxFollowInfo> {

    /**
     * 根据openId查询被关注用户的数量
     * @param toOpenId
     * @return
     */
    long getCountByOpenId(String toOpenId);

    /**
     * 获取助力排行榜
     * @return
     */
    List<Map<String, Object>> getRankingList();

}
